public class NiceTitForTat extends BilateralAgent
domain, myHistory, opponentHistoryfNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace| Constructor and Description |
|---|
NiceTitForTat() |
| Modifier and Type | Method and Description |
|---|---|
Bid |
chooseCounterBid()
The opponent has already made a bid.
|
Bid |
chooseFirstCounterBid()
Use this method to make the first counter-bid.
|
Bid |
chooseOpeningBid()
Use this method to make an opening bid.
|
java.lang.String |
getName() |
static java.lang.String |
getVersion() |
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
boolean |
isAcceptable(Bid plannedBid)
At some point, one of the parties has to accept an offer to end the negotiation.
|
protected static void |
log(java.lang.String s) |
protected Action |
makeAcceptAction()
By default, if an offer is deemed acceptable, we send accept.
|
static double |
percentage(double x) |
protected void |
prepareOpponentModel() |
static double |
round2(double x)
Rounds to two decimals
|
static double |
round3(double x)
Rounds to 3 decimals
|
chooseAction, getMyLastBid, getMySecondLastBid, getOpponentHistory, getOpponentLastBid, getRound, getUndiscountedUtility, ReceiveMessageendSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleeppublic java.lang.String getName()
public static java.lang.String getVersion()
public void init()
Agentinit in class BilateralAgentprotected void prepareOpponentModel()
public Bid chooseCounterBid()
BilateralAgentchooseCounterBid in class BilateralAgentpublic Bid chooseOpeningBid()
BilateralAgentchooseOpeningBid in class BilateralAgentpublic Bid chooseFirstCounterBid()
BilateralAgentchooseFirstCounterBid in class BilateralAgentpublic boolean isAcceptable(Bid plannedBid)
BilateralAgentisAcceptable in class BilateralAgentprotected Action makeAcceptAction()
BilateralAgentmakeAcceptAction in class BilateralAgentprotected static void log(java.lang.String s)
public static double round2(double x)
public static double round3(double x)
public static double percentage(double x)